<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/meta.jsp" %>
</head>
<body>
<div class="x-panel">
  <div class="x-panel-header">权限管理</div>
  <div class="x-toolbar">
    <div style="margin: 5px 10px; text-align: right;">
  	  <img src="${ctx}/images/icons/authority.gif">
  	  <a href="${ctx}/security/permission/index.do">权限首页</a>
    </div>
  </div>
<div class="x-panel-body">
<%@ include file="/common/messages.jsp"%>
<s:form action="permission/save" validate="true" theme="simple">
  <s:hidden name="model.id"/>
  <fieldset style="margin:10px;">
	<legend>编辑权限</legend>
  <table>
	<tr>
	  <td width="120" align="right">权限类型：</td>
	  <td align="left">
		<font color="green">URL权限</font>
		<input type="hidden" value="target_url" name="model.operation"/>
	  </td>
	</tr>
	<tr>
	  <td align="right">权限名称：</td>
	  <td>
		<s:textfield id="name" name="model.name" size="50" maxlength="50" />
		&nbsp;<font color="red">*&nbsp;</font>
		权限名称以&nbsp;<span style="color: red; font-weight: bold; font-family: sans-serif;">AUTH_</span>&nbsp;开头
	  </td>
	</tr>
	
	<tr>
	  <td align="right">权限描述：</td>
	  <td>
		<s:textfield id="descn" name="model.descn" size="50" maxlength="50" />
		&nbsp;<font color="red">*</font>
	  </td>
	</tr>
  </table>
</fieldset>
<div style="text-align: center;">
	<input type="submit" value="保存" class="button">
	<input type="reset" value="重置" class="button">
</div>
</s:form>
</div>
</div>
</body>
</html>